package com.hzsxy.bighomework.repository;

import com.hzsxy.bighomework.entity.SubmitDO;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 张晨 on 2018/11/28.
 */
@Repository
public interface SubmitRepository extends CrudRepository<SubmitDO,Integer> {

    List<SubmitDO> findByHomeworkIdAndStudentId(int homeworkId,String studentId);

    List<SubmitDO> findByHomeworkId(int homeworkId);

}
